package com.example.administrator.funchat.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.example.administrator.funchat.adapter.FriendAdapter;
import com.example.administrator.funchat.R;

/**
 * 朋友圈fragment视图加载并适配
 * Created by Administrator on 2016/6/23.
 */
public class Friend_fragment extends android.support.v4.app.Fragment {

    ListView listView;


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.friend_tab, container, false);

        listView = (ListView) view.findViewById(R.id.friend_listviw);
        FriendAdapter adapter = new FriendAdapter(getActivity(), R.layout.friend_item);
        listView.setAdapter(adapter);
        adapter.load();
        return view;
    }


}
